package edu.sctu.zhoudie.mouth201505.day20150510;

/**
 * Created by user08 on 2015/5/10.
 */
public class Structure {

    int sum;
    public TextOne textOne;

    public Structure(TextOne textOne) {
        this.textOne = textOne;
    }

    public int getSum() {

        for (int i = 0; i <= textOne.number; i++) {
            sum += i;
        }

        return sum;
    }

}
